#pragma once
#include <stdbool.h>

#define UNCOVERED 0
#define COVERED 1
#define FLAGED 2
#define MARKED 3

/**
 * @brief 扫雷地图
 * mx,my地图长宽
 * mineMap[i][j]=1 	表示第i行第j列为雷
 * mode				表示困难度
 * stage[i][j]		表示地图显示状态
 * cnt    			表示雷的总数
 * autobook			用于自动打开的数组
 */
typedef struct map{
	int mineMap[105][105];
	int mx, my;
	int mode;
	int stage[105][105];
	int cnt;
	int autobook[105][105];
	bool generated;
}map;

#define ROW_1 10
#define COL_1 10
#define ROW_2 ROW_1 + 2
#define COL_2 COL_1 + 2
#define MINECOUNT 9

#define MODE_EASY 1
#define MODE_MID  2
#define MODE_HARD 3

#define MX_EASY 9
#define MX_MID  16
#define MX_HARD 16

#define MY_EASY 9
#define MY_MID  16
#define MY_HARD 30

#define NUM_EASY 10
#define NUM_MID  40
#define NUM_HARD 99

